
Pod::Spec.new do |spec|

  spec.name         = 'WonderGromoreSDK'
  spec.version      = '3.4.0.3'
  spec.summary      = 'ABUAdSDK is a SDK from Bytedance providing media union AD service.'
  spec.homepage     = 'https://gitee.com/wonder_ios_sdk/gitee_gromore'
  spec.description  = <<-DESC
    ABUAdSDK allows you to monetize your iOS  apps with media union ads.
                       DESC

  spec.license      = { :type => 'MIT', :file => 'LICENSE' }
  spec.author             = 'CCYQ'
  spec.social_media_url   = ''
  spec.platform     = :ios, '9.0'

  spec.source = { :git => 'https://gitee.com/wonder_ios_sdk/gitee_gromore.git' }

  spec.libraries = 'sqlite3', 'xml2','z'
  spec.frameworks = 'SystemConfiguration', 'CoreGraphics','Foundation','UIKit','AdSupport','StoreKit','QuartzCore','CoreTelephony','MobileCoreServices','Accelerate','AVFoundation','WebKit'

  spec.requires_arc = true
  # spec.user_target_xcconfig =   {'OTHER_LDFLAGS' => ['-lObjC']}
  spec.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  spec.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  
  spec.ios.deployment_target = '9.0'
  spec.default_subspec = 'ABUAdSDK'
  valid_archs = ['arm64', 'armv7', 'x86_64', 'i386']
  
  # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

  spec.subspec 'ABUAdSDK' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdSDK.framework'
    ss.dependency 'Ads-CN-Beta', '4.2.5.1'
    # 源码引用穿山甲调试用
    #ss.dependency 'BUAdSDK'
  end

  spec.subspec 'ABUAdUnityAdapter' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdUnityAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    ss.dependency 'UnityAds', '4.0.0'
  end

  spec.subspec 'ABUAdAdmobAdapter' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdAdmobAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    ss.dependency 'Google-Mobile-Ads-SDK', '8.13.0'
  end

  spec.subspec 'ABUAdBaiduAdapter' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdBaiduAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    #ss.dependency 'BaiduMobAdSDK', '4.80'
  end
  
  spec.subspec 'ABUAdCsjAdapter' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdCsjAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    #ss.dependency 'KSAdSDK', '3.3.20'
  end

  spec.subspec 'ABUAdGdtAdapter' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdGdtAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    ss.dependency 'GDTMobSDK', '4.13.40'
  end
  
  spec.subspec 'ABUAdKlevinAdapter' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdKlevinAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    #ss.dependency 'KlevinAdSDK', '2.4.1.222'
  end

  spec.subspec 'ABUAdSigmobAdapter' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdSigmobAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    ss.dependency 'SigmobAd-iOS', '3.5.0'
  end

  spec.subspec 'ABUAdKsAdapter' do |ss|
    ss.ios.vendored_frameworks = 'Frameworks/ABUAdKsAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    #ss.dependency 'KSAdSDK', '3.3.20'
  end

  spec.subspec 'ABUAdMintegralAdapter' do |ss|
        ss.ios.vendored_frameworks = 'Frameworks/ABUAdMintegralAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    ss.dependency 'MintegralAdSDK', '7.0.6.0'
    ss.dependency 'MintegralAdSDK/SplashAd', '7.0.6.0'
    ss.dependency 'MintegralAdSDK/InterstitialAd', '7.0.6.0'
    ss.dependency 'MintegralAdSDK/InterstitialVideoAd', '7.0.6.0'
    ss.dependency 'MintegralAdSDK/RewardVideoAd', '7.0.6.0'
    ss.dependency 'MintegralAdSDK/NativeAd', '7.0.6.0'
    ss.dependency 'MintegralAdSDK/NativeAdvancedAd', '7.0.6.0'
    ss.dependency 'MintegralAdSDK/BannerAd' , '7.0.6.0'
  end
  
  spec.subspec 'ABUAdSDKAdapter' do |ss|
        ss.ios.vendored_frameworks = 'Frameworks/ABUAdSDKAdapter.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
  end
  
  spec.subspec 'ABUVisualDebug' do |ss|
        ss.ios.vendored_frameworks = 'Frameworks/ABUVisualDebug.framework'
    ss.dependency 'WonderGromoreSDK/ABUAdSDK'
    ss.resource = 'Frameworks/ABUVisualDebug.bundle'
  end
end

